const { Send } = require("../utils/response");
const User = require("../models/user");

class DashBoardController {
    static async Registers(req, res, next) {
        try {
            const users = await User.find({ role: "user" });
            return Send(res, {
                data: users
            });
        } catch (error) {
            next(error);
        }
    }
}

export default DashBoardController;
